package com.kuizii.server.discovery;

import com.kuizii.common.LiteServiceRegistration;
import com.kuizii.server.net.IOManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

public class DefaultRegisterServer {
    Logger logger = LoggerFactory.getLogger(DefaultRegisterServer.class);
    SecurityHandler securityHandler;
    IOManager ioManager;
    RegisterEventListener registerEventListener;
    /**
     * KEY 服务名  value 实例列表
     */
    ConcurrentHashMap<String, Set<LiteServiceRegistration>> serviceMap = new ConcurrentHashMap<>();

    public DefaultRegisterServer(SecurityHandler securityHandler, IOManager ioManager, RegisterEventListener registerEventListener) {
        this.securityHandler = securityHandler;
        this.ioManager = ioManager;
        this.registerEventListener = registerEventListener;

    }



}
